package com.czy.form.util;

/***
 * @ ClassName: ResultEnum
 * @ Description: TODO
 * @ author：libi
 * @ date： 2020/2/4 12:32
 * @ version： V1.0.0
 * @ CopyRight：czy
 */
public enum ResultEnum {

    SUCCESS("000000", "成功"),
    FAILURE("000001", "失败"),


    UNLOGIN("000002", "用户未登录"),
    EXCEPT("000003", "系统异常"),
    PARAMETER_CHECK("000004", "参数校验失败");

    //TODO: 枚举其它返回值

    private String code;
    private String msg;

    ResultEnum(String code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}

